﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.IO;
using System.Web;

namespace TabulexClient
{
    class Program
    {

    

        static void Main(string[] args)
        {
            var client = new TbxClient("", "");

            var login = client.Login();

            var classes = client.GetAllClasses("7910117");


            var cinfo = client.GetChildInfo(login.parent.children.First());
            //client.CreateAppointment(login.parent.children.First(), DateTime.Today.AddHours(15).AddMinutes(15), "Mor");

            var alber = classes.First(c => c.name == "1X").pupils.First(p => p.name.StartsWith("Alber"));

            client.CreateAppointment(login.parent.children.First(), new DateTime(2014, 06, 02, 12, 00, 00), TbxEventType.Pickup, "By mom", "");
        }
    }
}
